<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>POST</title>
	</head>
	<body>
		<script src="../js/axios.js"></script>
		<script>
			/**
			 * 需求: 要求将id="234" 
			 * 	     改为name="小鬼当家",age=4,sex=男
			 */

			let user = {
				id: 234,
				name: "小鬼当家",
				age: 4,
				sex: "男"
			}
			let url = "http://localhost:8090/axios/updateUser"
			axios.put(url, user)
				.then(promise => {
					console.log(promise.data)
				})
		</script>
	</body>
</html>
